home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1994 August: Tool Chest / Dev.CD Aug 94.toast / New System Software Extensions / OpenDoc A6 / SOM / OpenDoc and SOM / C / PfTypLs.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-04-19  |  9.9 KB  |  310 lines  |  [TEXT/MPS ]

  1.  
  2. /*
  3.  * This file was generated by the SOM Compiler.
  4.  * FileName: Locrian:WWDCSun:C:PfTypLs.h.
  5.  * Generated using:
  6.  *     SOM Precompiler somipc: somc/smemit.c
  7.  *     SOM Emitter emith.dll: somc/smmain.c
  8.  */
  9.  
  10. /*
  11.  * 
  12.  *  Classes defined in this interface
  13.  * 
  14.  */
  15.  
  16.  
  17. #ifndef SOM_ODPlatformTypeSet_h
  18. #define SOM_ODPlatformTypeSet_h
  19.  
  20.  
  21. #include <som.h>
  22.  
  23. /*
  24.  * -- This emitter treats Method Tokens as Thunks by default
  25.  * -- Use the sc modifier "nothunks" to change this default
  26.  */
  27. #undef somresolve_
  28. #define somresolve_(obj,mToken) ((somMethodProc*)((void)obj, mToken))
  29.  
  30. /*
  31.  * Define the class name as an object type
  32.  */
  33. #ifndef ODPlatformTypeSet
  34. #define ODPlatformTypeSet SOMObject
  35. #endif
  36. #include <ODObject.h>
  37.  
  38. /*
  39.  * Start of user-defined types:
  40.  */
  41. #ifndef ODExtension
  42.     #define ODExtension SOMObject
  43. #endif /* ODExtension */
  44. #ifndef ODPlatformTypeSetIterator
  45.     #define ODPlatformTypeSetIterator SOMObject
  46. #endif /* ODPlatformTypeSetIterator */
  47.  
  48. /*
  49.  * End of user-defined types.
  50.  */
  51.  
  52. #define ODPlatformTypeSet_MajorVersion 0
  53. #define ODPlatformTypeSet_MinorVersion 0
  54.  
  55. /*
  56.  * External name shortening if required
  57.  */
  58. #ifdef SOM_USE_SHORT_EXTERNAL_NAMES
  59. #define ODPlatformTypeSetNewClass c
  60. #define ODPlatformTypeSetClassData d
  61. #define ODPlatformTypeSetCClassData x
  62. #endif /* SOM_USE_SHORT_EXTERNAL_NAMES */
  63. /*--------------Migration------------*/
  64. #define ODPlatformTypeSet_classObj ODPlatformTypeSetClassData.classObject
  65. #define _ODPlatformTypeSet ODPlatformTypeSet_classObj
  66.  
  67. /*
  68.  * Declare the class creation procedure
  69.  */
  70.  
  71. #if applec ^ PRAGMA_LIB_EXPORT
  72. #pragma lib_export on
  73. #endif
  74.  
  75. SOMEXTERN SOMClass * SOMLINK ODPlatformTypeSetNewClass(integer4 somtmajorVersion,
  76.         integer4 somtminorVersion);
  77.  
  78. /*
  79.  * Declare the class data structure
  80.  */
  81. SOMEXTERN struct ODPlatformTypeSetClassDataStructure {
  82.     SOMAny *classObject;
  83.     somMToken InitPlatformTypeSet;
  84.     somMToken Add;
  85.     somMToken Union;
  86.     somMToken Remove;
  87.     somMToken Difference;
  88.     somMToken Contains;
  89.     somMToken Count;
  90.     somMToken CreatePlatformTypeSetIterator;
  91. }
  92. #ifdef SOM_NO_DATA_EXPORTS
  93.     * ODPlatformTypeSetGetClassData ( void );
  94. #   undef ODPlatformTypeSetClassData
  95. #   define ODPlatformTypeSetClassData (*ODPlatformTypeSetGetClassData())
  96. #else
  97.       ODPlatformTypeSetClassData;
  98. #endif /* SOM_NO_DATA_EXPORTS */
  99.  
  100. #if applec ^ PRAGMA_LIB_EXPORT
  101. #pragma lib_export off
  102. #endif
  103.  
  104.  
  105. /*
  106.  * Declare the C specific class data structure
  107.  */
  108. SOMEXTERN struct ODPlatformTypeSetCClassDataStructure {
  109.     somMethodTabs parentMtab;
  110.     somDToken instanceDataToken;
  111. } ODPlatformTypeSetCClassData;
  112.  
  113. /*
  114.  * New and Renew macros for ODPlatformTypeSet
  115.  */
  116. #define ODPlatformTypeSetNew() \
  117.     ( ( ! (ODPlatformTypeSetClassData.classObject) && \
  118.         (ODPlatformTypeSetNewClass(ODPlatformTypeSet_MajorVersion, ODPlatformTypeSet_MinorVersion)) ), \
  119.       (_somNew(ODPlatformTypeSetClassData.classObject)) )
  120. #define ODPlatformTypeSetRenew(buf) \
  121.     ( _somRenew(ODPlatformTypeSetClassData.classObject, buf) )
  122.  
  123. /*
  124.  * Override method: somInit
  125.  */
  126. #define ODPlatformTypeSet_somInit(somSelf) \
  127.     SOMObject_somInit(somSelf)
  128.  
  129. /*
  130.  * Override method: somUninit
  131.  */
  132. #define ODPlatformTypeSet_somUninit(somSelf) \
  133.     SOMObject_somUninit(somSelf)
  134.  
  135. /*
  136.  * New Method: InitPlatformTypeSet
  137.  */
  138. typedef void   (SOMLINK *somTD_ODPlatformTypeSet_InitPlatformTypeSet)(ODPlatformTypeSet *somSelf, Environment *ev);
  139. #define somMD_ODPlatformTypeSet_InitPlatformTypeSet "::ODPlatformTypeSet::InitPlatformTypeSet"
  140. #define ODPlatformTypeSet_InitPlatformTypeSet(somSelf,ev) \
  141.     (SOM_Resolve(somSelf, ODPlatformTypeSet, InitPlatformTypeSet) \
  142.     (somSelf,ev))
  143. #ifndef SOMGD_InitPlatformTypeSet
  144.     #if (defined(_InitPlatformTypeSet) || defined(__InitPlatformTypeSet))
  145.         #undef _InitPlatformTypeSet
  146.         #undef __InitPlatformTypeSet
  147.         #define SOMGD_InitPlatformTypeSet 1
  148.     #else
  149.         #define _InitPlatformTypeSet ODPlatformTypeSet_InitPlatformTypeSet
  150.     #endif /* _InitPlatformTypeSet */
  151. #endif /* SOMGD_InitPlatformTypeSet */
  152.  
  153. /*
  154.  * New Method: Add
  155.  */
  156. typedef void   (SOMLINK *somTD_ODPlatformTypeSet_Add)(ODPlatformTypeSet *somSelf, Environment *ev,
  157.         ODPlatformType type);
  158. #define somMD_ODPlatformTypeSet_Add "::ODPlatformTypeSet::Add"
  159. #define ODPlatformTypeSet_Add(somSelf,ev,type) \
  160.     (SOM_Resolve(somSelf, ODPlatformTypeSet, Add) \
  161.     (somSelf,ev,type))
  162. #ifndef SOMGD_Add
  163.     #if (defined(_Add) || defined(__Add))
  164.         #undef _Add
  165.         #undef __Add
  166.         #define SOMGD_Add 1
  167.     #else
  168.         #define _Add ODPlatformTypeSet_Add
  169.     #endif /* _Add */
  170. #endif /* SOMGD_Add */
  171.  
  172. /*
  173.  * New Method: Union
  174.  */
  175. typedef void   (SOMLINK *somTD_ODPlatformTypeSet_Union)(ODPlatformTypeSet *somSelf, Environment *ev,
  176.         ODPlatformTypeSet* typeSet);
  177. #define somMD_ODPlatformTypeSet_Union "::ODPlatformTypeSet::Union"
  178. #define ODPlatformTypeSet_Union(somSelf,ev,typeSet) \
  179.     (SOM_Resolve(somSelf, ODPlatformTypeSet, Union) \
  180.     (somSelf,ev,typeSet))
  181. #ifndef SOMGD_Union
  182.     #if (defined(_Union) || defined(__Union))
  183.         #undef _Union
  184.         #undef __Union
  185.         #define SOMGD_Union 1
  186.     #else
  187.         #define _Union ODPlatformTypeSet_Union
  188.     #endif /* _Union */
  189. #endif /* SOMGD_Union */
  190.  
  191. /*
  192.  * New Method: Remove
  193.  */
  194. typedef void   (SOMLINK *somTD_ODPlatformTypeSet_Remove)(ODPlatformTypeSet *somSelf, Environment *ev,
  195.         ODPlatformType type);
  196. #define somMD_ODPlatformTypeSet_Remove "::ODPlatformTypeSet::Remove"
  197. #define ODPlatformTypeSet_Remove(somSelf,ev,type) \
  198.     (SOM_Resolve(somSelf, ODPlatformTypeSet, Remove) \
  199.     (somSelf,ev,type))
  200. #ifndef SOMGD_Remove
  201.     #if (defined(_Remove) || defined(__Remove))
  202.         #undef _Remove
  203.         #undef __Remove
  204.         #define SOMGD_Remove 1
  205.     #else
  206.         #define _Remove ODPlatformTypeSet_Remove
  207.     #endif /* _Remove */
  208. #endif /* SOMGD_Remove */
  209.  
  210. /*
  211.  * New Method: Difference
  212.  */
  213. typedef void   (SOMLINK *somTD_ODPlatformTypeSet_Difference)(ODPlatformTypeSet *somSelf, Environment *ev,
  214.         ODPlatformTypeSet* typeSet);
  215. #define somMD_ODPlatformTypeSet_Difference "::ODPlatformTypeSet::Difference"
  216. #define ODPlatformTypeSet_Difference(somSelf,ev,typeSet) \
  217.     (SOM_Resolve(somSelf, ODPlatformTypeSet, Difference) \
  218.     (somSelf,ev,typeSet))
  219. #ifndef SOMGD_Difference
  220.     #if (defined(_Difference) || defined(__Difference))
  221.         #undef _Difference
  222.         #undef __Difference
  223.         #define SOMGD_Difference 1
  224.     #else
  225.         #define _Difference ODPlatformTypeSet_Difference
  226.     #endif /* _Difference */
  227. #endif /* SOMGD_Difference */
  228.  
  229. /*
  230.  * New Method: Contains
  231.  */
  232. typedef ODBoolean   (SOMLINK *somTD_ODPlatformTypeSet_Contains)(ODPlatformTypeSet *somSelf, Environment *ev,
  233.         ODPlatformType type);
  234. #define somMD_ODPlatformTypeSet_Contains "::ODPlatformTypeSet::Contains"
  235. #define ODPlatformTypeSet_Contains(somSelf,ev,type) \
  236.     (SOM_Resolve(somSelf, ODPlatformTypeSet, Contains) \
  237.     (somSelf,ev,type))
  238. #ifndef SOMGD_Contains
  239.     #if (defined(_Contains) || defined(__Contains))
  240.         #undef _Contains
  241.         #undef __Contains
  242.         #define SOMGD_Contains 1
  243.     #else
  244.         #define _Contains ODPlatformTypeSet_Contains
  245.     #endif /* _Contains */
  246. #endif /* SOMGD_Contains */
  247.  
  248. /*
  249.  * New Method: Count
  250.  */
  251. typedef ODULong   (SOMLINK *somTD_ODPlatformTypeSet_Count)(ODPlatformTypeSet *somSelf, Environment *ev);
  252. #define somMD_ODPlatformTypeSet_Count "::ODPlatformTypeSet::Count"
  253. #define ODPlatformTypeSet_Count(somSelf,ev) \
  254.     (SOM_Resolve(somSelf, ODPlatformTypeSet, Count) \
  255.     (somSelf,ev))
  256. #ifndef SOMGD_Count
  257.     #if (defined(_Count) || defined(__Count))
  258.         #undef _Count
  259.         #undef __Count
  260.         #define SOMGD_Count 1
  261.     #else
  262.         #define _Count ODPlatformTypeSet_Count
  263.     #endif /* _Count */
  264. #endif /* SOMGD_Count */
  265.  
  266. /*
  267.  * New Method: CreatePlatformTypeSetIterator
  268.  */
  269. typedef ODPlatformTypeSetIterator*   (SOMLINK *somTD_ODPlatformTypeSet_CreatePlatformTypeSetIterator)(ODPlatformTypeSet *somSelf, Environment *ev);
  270. #define somMD_ODPlatformTypeSet_CreatePlatformTypeSetIterator "::ODPlatformTypeSet::CreatePlatformTypeSetIterator"
  271. #define ODPlatformTypeSet_CreatePlatformTypeSetIterator(somSelf,ev) \
  272.     (SOM_Resolve(somSelf, ODPlatformTypeSet, CreatePlatformTypeSetIterator) \
  273.     (somSelf,ev))
  274. #ifndef SOMGD_CreatePlatformTypeSetIterator
  275.     #if (defined(_CreatePlatformTypeSetIterator) || defined(__CreatePlatformTypeSetIterator))
  276.         #undef _CreatePlatformTypeSetIterator
  277.         #undef __CreatePlatformTypeSetIterator
  278.         #define SOMGD_CreatePlatformTypeSetIterator 1
  279.     #else
  280.         #define _CreatePlatformTypeSetIterator ODPlatformTypeSet_CreatePlatformTypeSetIterator
  281.     #endif /* _CreatePlatformTypeSetIterator */
  282. #endif /* SOMGD_CreatePlatformTypeSetIterator */
  283. #ifndef SOM_DONT_USE_INHERITED_MACROS
  284. #define ODPlatformTypeSet_InitObject ODObject_InitObject
  285. #define ODPlatformTypeSet_IsInitialized ODObject_IsInitialized
  286. #define ODPlatformTypeSet_HasExtension ODObject_HasExtension
  287. #define ODPlatformTypeSet_GetExtension ODObject_GetExtension
  288. #define ODPlatformTypeSet_ReleaseExtension ODObject_ReleaseExtension
  289. #define ODPlatformTypeSet_Purge ODObject_Purge
  290. #define ODPlatformTypeSet_SubClassResponsibility ODObject_SubClassResponsibility
  291. #define ODPlatformTypeSet_somFree SOMObject_somFree
  292. #define ODPlatformTypeSet_somGetClass SOMObject_somGetClass
  293. #define ODPlatformTypeSet_somGetClassName SOMObject_somGetClassName
  294. #define ODPlatformTypeSet_somGetSize SOMObject_somGetSize
  295. #define ODPlatformTypeSet_somIsA SOMObject_somIsA
  296. #define ODPlatformTypeSet_somIsInstanceOf SOMObject_somIsInstanceOf
  297. #define ODPlatformTypeSet_somRespondsTo SOMObject_somRespondsTo
  298. #define ODPlatformTypeSet_somDispatchV SOMObject_somDispatchV
  299. #define ODPlatformTypeSet_somDispatchL SOMObject_somDispatchL
  300. #define ODPlatformTypeSet_somDispatchA SOMObject_somDispatchA
  301. #define ODPlatformTypeSet_somDispatchD SOMObject_somDispatchD
  302. #define ODPlatformTypeSet_somDispatch SOMObject_somDispatch
  303. #define ODPlatformTypeSet_somClassDispatch SOMObject_somClassDispatch
  304. #define ODPlatformTypeSet_somPrintSelf SOMObject_somPrintSelf
  305. #define ODPlatformTypeSet_somDumpSelf SOMObject_somDumpSelf
  306. #define ODPlatformTypeSet_somDumpSelfInt SOMObject_somDumpSelfInt
  307. #endif /* SOM_DONT_USE_INHERITED_MACROS */
  308.  
  309. #endif       /* SOM_ODPlatformTypeSet_h */
  310.